
class AddrList {
    String? id;
    String? createBy;
    String? createTime;
    bool? deleteFlag;
    String? parentId;
    String? adCode;
    String? center;
    String? level;
    String? name;
    String? path;
    int? orderNum;
    String? cityCode;

    AddrList({this.id, this.createBy, this.createTime, this.deleteFlag, this.parentId, this.adCode, this.center, this.level, this.name, this.path, this.orderNum, this.cityCode});

    AddrList.fromJson(Map<String, dynamic> json) {
        if(json["id"] is String) {
            id = json["id"];
        }
        if(json["createBy"] is String) {
            createBy = json["createBy"];
        }
        if(json["createTime"] is String) {
            createTime = json["createTime"];
        }
        if(json["deleteFlag"] is bool) {
            deleteFlag = json["deleteFlag"];
        }
        if(json["parentId"] is String) {
            parentId = json["parentId"];
        }
        if(json["adCode"] is String) {
            adCode = json["adCode"];
        }
        if(json["center"] is String) {
            center = json["center"];
        }
        if(json["level"] is String) {
            level = json["level"];
        }
        if(json["name"] is String) {
            name = json["name"];
        }
        if(json["path"] is String) {
            path = json["path"];
        }
        if(json["orderNum"] is int) {
            orderNum = json["orderNum"];
        }
        if(json["cityCode"] is String) {
            cityCode = json["cityCode"];
        }
    }
  static List<AddrList> fromList(List<Map<String, dynamic>> list) {
        return list.map(AddrList.fromJson).toList();
    }
    Map<String, dynamic> toJson() {
        final Map<String, dynamic> _data = <String, dynamic>{};
        _data["id"] = id;
        _data["createBy"] = createBy;
        _data["createTime"] = createTime;
        _data["deleteFlag"] = deleteFlag;
        _data["parentId"] = parentId;
        _data["adCode"] = adCode;
        _data["center"] = center;
        _data["level"] = level;
        _data["name"] = name;
        _data["path"] = path;
        _data["orderNum"] = orderNum;
        _data["cityCode"] = cityCode;
        return _data;
    }
}